package com.xjnt.frameworks.plugin.sql.criterion;

import java.util.Map;

public class SqlType {
	
	public TypedValue getTypedValue(SqlCriteria criterion, String columnName, Object value){
		Map<String, Class<?>> columnTypeMap = criterion.getModelClass().getTable().getColumnTypeMap();
		return new TypedValue(columnTypeMap.get(columnName), value);
	}
}
